package Cain.initEffect
{
	import Cain.initEffect.InitEffect;
	import com.greensock.TweenMax;
	/**
	 * 模糊進場
	 * @author cain in liontravel 2010
	 */
	public class BulrInit extends InitEffect
	{
		private var s:Number;
		/**
		 * 進場
		 * @param	_t 淡入時間
		 */
		public function BulrInit(_t:int = 1) 
		{
			s = _t;
			super(_t);
		}
		override protected function movieing():void //動畫
		{
			TweenMax.to(this, 0, { scaleX:2,scaleY:2,alpha:0, blurFilter: { blurX:50, blurY:50 }} );
			TweenMax.to(this, s, { scaleX:1,scaleY:1,alpha:1, blurFilter: { blurX:0, blurY:0 }} );
		}
		/**
		 * 移除自己
		 * @param	_t 淡出時間
		 */
		override public function remove(_t:Number = .5):void 
		{
			TweenMax.to(this, _t, { alpha:0, blurFilter: { blurX:50, blurY:50 }} );
		}
	}

}